import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import createPersistedState from 'vuex-persistedstate'
import cart from './modules/cart'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: { user, cart },
  plugins: [createPersistedState({ key: 'vue2-2306', paths: ['user', 'cart'] })]
})
